<template>
<div>
    <el-button @click="fuckMyCHILD">点我</el-button>
    <child ref="msg" @click="fuckMyCHILD"></child>
</div>
</template>

<script>
    import child from "../components/emp/child";
    export default {
        name: "test",
        components:{
            child
        },
        methods:{
            fuckMyCHILD(){
                this.$refs.msg.haha('2');
            }
        }
    }
</script>

<style scoped>

</style>
